
#导入扩展flask-script扩展
from flask_script import Manager
#导入flask-migrate
from flask_migrate import Migrate,MigrateCommand

#导入实例化后的app对象
from info import create_app,db
#导入模型类
# from info import models

app = create_app('development')

# #创建app实例
# app = Flask(__name__)

# #创建sqlalchemy实例
# db = SQLAlchemy(app)

#实例化管理器对象
manage = Manager(app)

#使用迁移框架
Migrate(app,db)
# #添加迁移命令
manage.add_command('db',MigrateCommand)


if __name__ == '__main__':
    # print(app.url_map)
    manage.run()

    # app.run()